@font-face {
    font-family: 'icomoon';
    src:  url('../fonts/icomoon.eot?hh2s9g');
    src:  url('../fonts/icomoon.eot?hh2s9g#iefix') format('embedded-opentype'),
      url('../fonts/icomoon.ttf?hh2s9g') format('truetype'),
      url('../fonts/icomoon.woff?hh2s9g') format('woff'),
      url('../fonts/icomoon.svg?hh2s9g#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
  }
body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: #222;
}
div {
    box-sizing: border-box;
}

/* goBack */

.goBack {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: url(../images/back.png) no-repeat;
    background-size: 38px 38px;
}
/* 搜索模块 */
.search_index {
    display: flex;
    /* 固定定位跟父级没有关系，它以屏幕为准 */
    position: fixed;
    top: 0;
    /* 让盒子在屏幕居中显示，注：定位的盒子用margin: 0 auto;来控制是没用的 */
    left: 50%;
    /* 注意兼容问题 */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    /* 固定定位的盒子要给宽度 */
    width: 100%;
    max-width: 540px;
    min-width: 320px;
    height: 44px;
    background-color: #f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    z-index: 999;
}
.search {
    /* 子绝父相：用定位来控制放大镜的位置 */
    position: relative;
    flex: 1;
    height: 26px;
    border: 1px solid #ccc;
    margin: 7px auto;
    border-radius: 5px;
    font-size: 12px;
    /* 注意：C3盒模型给行高应该要减去边框才会完全垂直居中，不然行高等于盒子高度的话文字会偏下 */
    line-height: 24px;
    color: #666;
    padding-left: 25px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.search::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) no-repeat -59px -279px;
    background-size: 104px auto;
}
.user {
    width: 44px;
    height: 44px;
    font-size: 12px;
    text-align: center;
    color: #2eaae0;
    
}
.user::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png) no-repeat -59px -194px;
    background-size: 104px auto;
    margin: 4px auto -2px;
}
/* 焦点图部分 */
.focus {
    /* 因为顶部的搜索框是固定定位的，所以要让焦点图往下走才行 */
    padding-top: 44px;
    position: relative;
    overflow: hidden;
}
.focus ul {
    overflow: hidden;   /*清除浮动*/
    width: 500%;    /*因为目前轮播图是三张图，但是加上首位衔接一共有五张图*/
    margin-left: -100%; /*因为在第一张图片前面又衔接了最后一张图，但是显示应该显示第一张图而不是最后一张，所以要把衔接的这张图移到左边去*/
}

.focus ul li {
    float: left;
    width: 20%;     /*ul的宽度是500%，所以500%的20%是100%，这样li的图片就是100%的规格显示的*/
}
.focus ol {
    position: absolute;
    bottom: 5px;
    right: 5px;
    margin: 0;
}
.focus ol li {
    display: inline-block;
    width: 5px;
    height: 5px;
    list-style: none;
    border-radius: 2px;
    background-color: #fff;
    transition: all .3s;
}
.focus ol .current {
    width: 15px;
}
.focus img {
    width: 100%;
}
/* 局部导航栏部分 */
.local_nav {
    display: flex;
    height: 64px;
    background-color: #fff;
    margin: 3px 4px;
    border-radius: 8px;
}
.local_nav li {
    flex: 1;
}
.local_nav a {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    font-size: 12px;
}
/* 注意这里使用属性选择器是为了能更好的找到每一个需要更换背景图片的span */
.local_nav li [class^="local_nav_icon"] {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
}
/* 注意：这里的精灵图其实是有规律的，每张图是一样大的而且是竖着排的，所以Y轴往上走即可 */
.local_nav li a .local_nav_icon_icon2 {
    background-position: 0 -32px;
}
.local_nav li a .local_nav_icon_icon3 {
    background-position: 0 -64px;
}
.local_nav li a .local_nav_icon_icon4 {
    background-position: 0 -96px;
}
.local_nav li a .local_nav_icon_icon5 {
    background-position: 0 -128px;
}
/* nav部分 */
nav {
    border-radius: 8px;
    overflow: hidden;
    margin: 0 4px 3px;
}
.nav_common {
    display: flex;
    height: 88px;
    background-color: pink;
}
.nav_common:nth-child(2) {
    margin: 3px 0;
}
.nav_items {
    /* 这样是不冲突的 */
    flex: 1;
    display: flex;
    flex-flow: column;
}
.nav_items a {
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 14px;
    /* 文字阴影效果 */
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}
.nav_items a:nth-child(1) {
    border-bottom: 1px solid #fff;
}
.nav_items:nth-child(1) a {
    border: 0;
    background: url(../images/hotel.png) no-repeat bottom center;
    background-size: 121px auto;
}
/* -n+2 就是选择前两个元素，然后给它们添加一个有边框即可 */
.nav_items:nth-child(-n+2) {
    border-right: 1px solid #fff;
}
/* 为nav_common中的每一行添加不同的背景颜色线性渐变效果 */
.nav_common:nth-child(1) {
    background: -webkit-linear-gradient(left, #FA5A55, #FA994D);
}
.nav_common:nth-child(2) {
    background: -webkit-linear-gradient(left, #4B90ED, #53BCED);
}
.nav_common:nth-child(3) {
    background: -webkit-linear-gradient(left, #34C2A9, #6CD559);
}
/* 侧导航栏 */
.subnav_entry {
    display: flex;
    border-right: 8px;
    overflow: hidden;
    background-color: #fff;
    margin: 0 4px;
    /* 让子盒子自动换行显示 */
    flex-wrap: wrap;
    padding: 5px 0;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, .3);
}
.subnav_entry li {
    /* flex的值可以是百分比，意思是占父元素的百分之多少，但是记得要有换行属性才行 */
    flex: 20%;  /*一行有五个，所以每个占20%*/

}
.subnav_entry a {
    display: flex;
    flex-flow: column;
    align-items: center;
}
.subnav_entry a [class^="subnav_entry_icon"] {
    width: 28px;
    height: 28px;
    margin-top: 4px;
    background: url(../images/subnav-bg.png) no-repeat;
    background-size: 28px auto;
}
.subnav_entry a .subnav_entry_icon_icon2 {
    background-position: 0 -28px;
}
.subnav_entry a .subnav_entry_icon_icon3 {
    background-position: 0 -62px;
}
.subnav_entry a .subnav_entry_icon_icon4 {
    background-position: 0 -127px;
}
.subnav_entry a .subnav_entry_icon_icon5 {
    background-position: 0 -96px;
}
.subnav_entry a .subnav_entry_icon_icon6 {
    background-position: 5px -163px;
}
.subnav_entry a .subnav_entry_icon_icon7 {
    background-position: 0 -196px;
}
.subnav_entry a .subnav_entry_icon_icon8 {
    background-position: 0 -224px;
}
.subnav_entry a .subnav_entry_icon_icon9 {
    background-position: 0 -252px;
}
.subnav_entry a .subnav_entry_icon_icon10 {
    background-position: 4px -284px;
}
/* 销售部分 */
.sales_box {
    border-top: 1px solid #bbb;
    background-color: #fff;
    margin: 4px;
}
.sales_hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}
.sales_hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}
.sales_hd h2::after {
    position: absolute;
    top: 8px;
    left: 20px;
    content: "";
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
}
.more {
    position: absolute;
    right: 5px;
    top: 0px;
    background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
    border-radius: 15px;
    padding: 3px 20px 3px 10px;
    color: #fff;
}
.more::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
.row {
    display: flex;
}
.row a:nth-child(1) {
    border-right: 1px solid #eee;
}
.row a {
    flex: 1;
    border-bottom: 1px solid #eee;
}
.row a img {
    width: 100%;
}
/* footer部分 */
.tool_cn {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    height: 61px;
    display: flex;
    background-color: #fff;
    margin-bottom: 6px;
}
.tool_cn a {
    flex: 1;
    display: flex;
    flex-flow: column;
    align-items: center;
    font-size: 12px;
}
.tool_cn a::before {
    font-family: 'icomoon';
    content: "\e942";
    display: block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: rgb(172, 168, 168);
    margin: 7px 0;
}
.tool_cn a:nth-child(2)::before {
    font-family: 'icomoon';
    content: "\e9c7";
}
.tool_cn a:nth-child(3)::before {
    font-family: 'icomoon';
    content: "\e971";
}
.tool_ver {
    height: 24px;
    text-align: center;
    line-height: 24px;
}
.tool_ver a {
    font-size: 12px;
    color: #666;
    margin: 0 6px;
}
.tool_box p {
    box-sizing: border-box;
    margin: 0px;
    padding: 5px;
    height: 28px;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 18px;
}